package com.yhy.wxzn.wcs.device.plc.bean;

import lombok.Data;

@Data
public class PortPlc extends BasePlc {
    /**
     * 容器，
     */
    @Deprecated
    private String bcrCode;

    /**
     * 托盘码
     */
    private volatile String code;
    /**
     * 称重
     */
    private volatile String weight;
    /**
     * 外形检测： 0-默认 1-正常 2-前超限 3-后超限 4-左超限 5-右超限 6-超高
     */
    private volatile int detection;

    public static String ParseDetection(int d){
        if (d == 0) return "默认";
        if (d == 1) return "正常";
        if (d == 2) return "前超限";
        if (d == 3) return "后超限";
        if (d == 4) return "左超限";
        if (d == 5) return "右超限";
        if (d == 6) return "超高";
        return "未知";
    }
    /**
     * 流水号
     */
    private volatile int plcNum;
}
